package com.example.weatherpromax.logic.model

import com.google.gson.annotations.SerializedName

/*
定义数据模型：从彩云天气请求实时天气的返回结果
格式：JSON格式
 */

data class RealtimeResponse (val status: String, val result: Result) {

    data class Result(val realtime: Realtime)

    //天气图标，实时温度，空气质量，日照强度
    data class Realtime(val temperature: Float, val skyon: String, @SerializedName("air_quality")val airQuality: AirQuality, val dswrf: Float)

    data class AirQuality(val aqi: AQI)

    data class AQI(val chn: Float)
}